import React from 'react';
import {StyleSheet} from 'react-native';
import {Image} from 'react-native';
import {Flex} from '@ant-design/react-native';

const MapView = (props) => (
    <Flex onPress={props.onPress}>
        <Image style={styles.mapImage} source={require('~/assets/public/addressparking.png')} />
    </Flex>
);

const styles = StyleSheet.create({
    mapImage: {
        width: '100%',
        aspectRatio: 1 / 0.241,
        borderRadius: 20,
    },
});

export default MapView;
